import { id } from 'element-plus/es/locale';
import request from '/@/utils/request';
// /**
//  * 
//  *搜索下级会员充值记录列表http://47.242.255.61:8818/app/v1/a/recharge
// **/
// export function apiUserListpost(data:Object) {
//     return request({
//         url: '/app/v1/a/recharge',
//         method: 'get',
//         data:data
//     }) 
// }
/**
 * 
 *下级会员充值记录列表http://47.242.255.61:8818/app/v1/a/recharge
**/
export function apirechargeList(query:Object) {
    return request({
        url: '/app/v1/a/recharge',
        method: 'get',
        params:query
    }) 
}
/**
 * 
 *下级用户列表http://47.242.255.61:8818/app/v1/a/user
**/
export function apiUserList(query:Object) {
    return request({
        url: '/app/v1/a/user',
        method: 'get',
        params:query
    }) 
}
/**
 * 
下级会员提现记录http://47.242.255.61:8818/app/v1/a/withdraw
**/
export function apiCashList(query:Object) {
    return request({
        url: '/app/v1/a/withdraw',
        method: 'get',
        params:query
    }) 
}
/**
 * 
 * 充值审核http://123.160.10.252:8818/api/v1/ucenter/wallet/recharge/audit/{id}
**/
export function apirechargeaudit(data:Object) {
    return request({
        url: '/api/v1/ucenter/wallet/recharge/audit/'+data.id,
        method: 'put',
        data:data
    }) 
}
/**
 * 
 * 提现管理列表http://123.160.10.252:8818/api/v1/ucenter/wallet/withdraw/list
**/
export function apiwithdrawList(query:Object) {
    return request({
        url: '/api/v1/ucenter/wallet/withdraw/list', 
        method: 'get',
        params:query
    }) 
}
/**
 * 
 * 提现审核http://123.160.10.252:8818/api/v1/ucenter/wallet/withdraw/audit/{id}
**/
export function apiwithdrawaudit(data:Object) {
    return request({
        url: '/api/v1/ucenter/wallet/withdraw/audit/'+data.id,
        method: 'put',
        data:data
    }) 
}
/**
 * 
 * 删除会员等级http://123.160.10.252:8818/api/v1/ucenter/config/vip/{id}
**/
export function apideletelevelList(id:Object) {
    return request({
        url: '/api/v1/ucenter/config/vip/'+id,
        method: 'delete',
        data:{}
    })
}
/**
 * 
 * 添加会员等级http://123.160.10.252:8818/api/v1/ucenter/config/vip
**/
export function apiaddlevelList(data:object) {
    return request({
        url: '/api/v1/ucenter/config/vip',
        method: 'post',
        data:data
    })
}

/**
 * 
 * 修改查询会员等级列表
**/
export function apieditlevelList(data:Object,id:Number) {
    return request({
        url: '/api/v1/ucenter/config/vip/'+ id,
        method: 'put', 
        data:data
    })
}

/**
 * 
 * 上传会员等级图片http://127.0.0.1:8808/api/v1/system/upload/upImgs' \
**/
export function apiaddPictures(data:object) {
    return request({
        url: '/api/v1/system/upload/upImg',
        method: 'post',
        data:data
    })
}



